home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************
- *
- * Copyright © 1990 Apple Computer, Inc. All rights reserved.
- *
- ************************************************************************/
-
- #include <stdio.h>
- #include <Dialogs.h>
- #include <strings.h>
-
- #include "HighSierra.h"
- #include "BuildISO.h"
- #include "DialogUtils.h"
-
- #include "ErrorMsg.proto.h"
-
- /************************************************************************
- *
- * Function: ErrorMsg
- *
- * Purpose: tell user about some error
- *
- * Returns: nothing
- *
- * Side Effects: displays an error message
- *
- * Description: we assume that you are passing stuff in as if you
- * were using printf. Put up a dialog that tells what
- * went wrong using your message.
- *
- ************************************************************************/
- void
- ErrorMsg(char *a, ...)
- {
- char errorString[255];
-
- sprintf(errorString, a);
- C2PStr(errorString);
- ParamText((StringPtr)errorString, NULL, NULL, NULL);
- Alert(DU_CenterALRT(129), 0L);
- }